From: Maksim Shabunin Date: Thu, 18 Dec 2025 11:30:00 +0000 (+0100) Subject: Fix VSX build with GCC 15 X-Git-Tag: archive/raspbian/4.10.0+dfsg-7+rpi1^2~4 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1ba8856d7f3f69145f6856132c2db62a610d4e29;p=opencv.git Fix VSX build with GCC 15 Origin: upstream, https://github.com/opencv/opencv/commit/3effe195cb2cf4b7f98fe5e9b4df55aa4951d706 Bug-Debian: https://bugs.debian.org/1116253 Last-Update: 2025-01-16 Gbp-Pq: Name fix-vsx-build-with-gcc-15.patch --- diff --git a/modules/core/include/opencv2/core/vsx_utils.hpp b/modules/core/include/opencv2/core/vsx_utils.hpp index 79a1074..4d5a694 100644 --- a/modules/core/include/opencv2/core/vsx_utils.hpp +++ b/modules/core/include/opencv2/core/vsx_utils.hpp @@ -257,8 +257,8 @@ VSX_IMPL_1VRG(vec_udword2, vec_udword2, vpopcntd, vec_popcntu) VSX_IMPL_1VRG(vec_udword2, vec_dword2, vpopcntd, vec_popcntu) // converts between single and double-precision -VSX_REDIRECT_1RG(vec_float4, vec_double2, vec_cvfo, __builtin_vsx_xvcvdpsp) -VSX_REDIRECT_1RG(vec_double2, vec_float4, vec_cvfo, __builtin_vsx_xvcvspdp) +VSX_REDIRECT_1RG(vec_float4, vec_double2, vec_cvfo, vec_floate) +VSX_REDIRECT_1RG(vec_double2, vec_float4, vec_cvfo, vec_doubleo) // converts word and doubleword to double-precision #undef vec_ctd @@ -399,10 +399,6 @@ VSX_REDIRECT_1RG(vec_ushort8, vec_ushort8, vec_popcntu, vec_popcnt) VSX_REDIRECT_1RG(vec_uint4, vec_uint4, vec_popcntu, vec_popcnt) VSX_REDIRECT_1RG(vec_udword2, vec_udword2, vec_popcntu, vec_popcnt) -// converts between single and double precision -VSX_REDIRECT_1RG(vec_float4, vec_double2, vec_cvfo, __builtin_vsx_xvcvdpsp) -VSX_REDIRECT_1RG(vec_double2, vec_float4, vec_cvfo, __builtin_vsx_xvcvspdp) - // converts word and doubleword to double-precision #ifdef vec_ctd # undef vec_ctd